﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OPM.Models.BaseModel;

namespace OPM.Models
{
    public class ContentAccountDetails
    {
        public string contact_account_id { get; set; }
        public string id { get; set; }
        public string detail { get; set; }
        public string _is_secret { get; set; }
        public string is_secret
        {
            get
            {
                return _is_secret;
            }
            set
            {
                if (is_secret == "T")
                {
                    _is_secret = "ปกปิด";
                }
                else
                {
                    _is_secret = "เปิดเผย";
                }
            }
        }

        public string detail_type { get; set; }
        public string is_enable { get; set; }
        public object tq_key { get; set; }
        public string created_by_text { get; set; }
        public string updated_by_text { get; set; }
        public string created { get; set; }
        public string created_by { get; set; }
        public string updated { get; set; }
        public string updated_by { get; set; }
    }

    public class ContactAccount
    {
        public string account_type { get; set; }
        public string account_type_text { get; set; }
        public List<ContentAccountDetails> list_account_detail { get; set; }
        public DateTime date_opened { get; set; }
        public string id { get; set; }
        public string org_id { get; set; }
        public string cont_id { get; set; }
        public string case_id { get; set; }
        public string type_id { get; set; }
        public string type { get; set; }
        public string ref_id { get; set; }
        public string country_id { get; set; }
        public string country_name { get; set; }
        public object salutation_th { get; set; }
        public string firstname_th { get; set; }
        public string lastname_th { get; set; }
        public object salutation_en { get; set; }
        public object firstname_en { get; set; }
        public object lastname_en { get; set; }
        public string gender_id { get; set; }
        public string gender_text { get; set; }
        public string citizen_id { get; set; }
        public object birthday { get; set; }
        public object address { get; set; }
        public object subdistrict_id { get; set; }
        public object subdistrict_text { get; set; }
        public object district_id { get; set; }
        public object district_text { get; set; }
        public object province_id { get; set; }
        public object province_text { get; set; }
        public object postcode { get; set; }
        public string remark { get; set; }
        public string is_defective { get; set; }
        public object is_enable { get; set; }
        public object tq_key { get; set; }
        public string created_by_text { get; set; }
        public string updated_by_text { get; set; }
        public string created { get; set; }
        public string created_by { get; set; }
        public string updated { get; set; }
        public string updated_by { get; set; }
        public string summary { get; set; }
        public string detail { get; set; }
        public string severity_id { get; set; }
        public string secret_id { get; set; }
        public string priority_id { get; set; }
        public string channel_id { get; set; }
        public Nullable<DateTime> cont_start { get; set; }
        public string cont_end { get; set; }
        public string cont_is_secret { get; set; }
        public string account_id { get; set; }
        public string cont_type { get; set; }
        public string cont_gender_id { get; set; }
        public string cont_title { get; set; }
        public string cont_firstname { get; set; }
        public string cont_lastname { get; set; }
        public string cont_citizen_id { get; set; }
        public string cont_contact_detail { get; set; }
        public string cont_country_id { get; set; }
        public string cont_address { get; set; }
        public string cont_subdistrict_id { get; set; }
        public string cont_district_id { get; set; }
        public string cont_province_id { get; set; }
        public string cont_postcode { get; set; }
        public string cont_birthday { get; set; }
        public string cont_remark { get; set; }
        public string cont_is_defective { get; set; }
        public string cont_number { get; set; }
        public string cont_is_victim { get; set; }
        public string objective_id { get; set; }

        public string case_code { get; set; }
        public string objective_text { get; set; }
        public string type_text { get; set; }
        public string status_id { get; set; }
        public string status_text { get; set; }
        public string defendant { get; set; }
        public int sla { get; set; }
        public string ShowDateTime { get; set; }
        public string timeline_type { get; set; }
    }
}
